package com.ljz.dao;

import com.ljz.entity.Person;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * Created by jiazhang on 2017/4/11.
 */
public interface PersonRepository extends JpaRepository<Person, Integer> {


    /**
     * 通过年龄来查询
     * 方法名固定 findByAge
     * @param age
     * @return
     */
    public List<Person> findByAge(Integer age);
}
